package base.variable;

public class TypeConvert {
    public static void main(String[] args) {
        // auto convert
        int score1 = 82;
        double score2 = score1;
        double total = score1 + score2;
        System.out.println("score1 = " + score1 + ", score2 = " + score2 + ", total = " + total);
        // force convert
        double avg1 = 75.8;
        int avg2 = (int) avg1;
        System.out.println("avg1 = " + avg1 + ", avg2 = " + avg2);
    }
}
